package cn.b.sky.mes.andon.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.b.sky.mes.andon.service.AndonMessageService;
import cn.b.sky.common.utils.SpringBeanUtil;
import cn.b.sky.schedule.job.BaseQuartzJobBean;
import cn.b.sky.schedule.model.TimedJobInfo;

/**
 * <strong>Title : AdnonMessageJobBean.java<br></strong>
 * <strong>Package : cn.b.sky.mes.andon.schedule<br></strong>
 * <strong>Description : </strong>暗灯消息通知定时任务<br> 
 * <strong>Create on : 2016年10月20日 下午6:33:34<br></strong>
 * <p>
 * @author ShiYing.Ke<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人|修改日期|修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class AdnonMessageJobBean implements BaseQuartzJobBean {
	private static final Logger LOGGER = LoggerFactory
			.getLogger(AdnonMessageJobBean.class);

	AndonMessageService andonMessageService = (AndonMessageService) SpringBeanUtil
			.getBean("andonMessageService");

	@Override
	public void executeManual(TimedJobInfo timeJobInfo) {
		LOGGER.info("--------暗灯消息通知任务定时JOB开始---------");
		andonMessageService.doSendAndonMessage();
		LOGGER.info("--------暗灯消息通知任务定时JOB结束---------");
	}

}
